<p class="Paragraph"><help:paragraphinfo state="U" number="13" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Name:</span> Name of the subroutine to contain the value returned by the function.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="14" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">VarName:</span> Parameter to be passed to the subroutine.</p>
<p class="PropText"><help:paragraphinfo state="U" number="18" xmlns:help="http://openoffice.org/2000/help"/>Dim sReturn As String</p>
<p class="PropText"><help:paragraphinfo state="U" number="19" xmlns:help="http://openoffice.org/2000/help"/>Dim sListArray(10) as String</p>
<p class="PropText"><help:paragraphinfo state="U" number="20" xmlns:help="http://openoffice.org/2000/help"/>Dim siStep as Single</p>
<p class="PropText"><help:paragraphinfo state="U" number="21" xmlns:help="http://openoffice.org/2000/help"/>For siStep = 0 to 10 <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>REM Fill array with test data</p>
<p class="PropText"><help:paragraphinfo state="U" number="30" xmlns:help="http://openoffice.org/2000/help"/>Function LinSearch( sList(), sItem As String ) as integer</p>
<p class="PropText"><help:paragraphinfo state="U" number="31" xmlns:help="http://openoffice.org/2000/help"/>dim iCount as Integer</p>
<p class="PropText"><help:paragraphinfo state="U" number="32" xmlns:help="http://openoffice.org/2000/help"/>REM Linsearch searches a TextArray:sList() for a TextEntry:</p>
<p class="PropText"><help:paragraphinfo state="U" number="33" xmlns:help="http://openoffice.org/2000/help"/>REM Return value is the index of the entry or 0 (Null)</p>
<p class="PropText"><help:paragraphinfo state="U" number="34" xmlns:help="http://openoffice.org/2000/help"/>for iCount=1 to Ubound( sList() )</p>